Page({
    data: {
        list : [] ,
        xPageReady : true
    },
    onShareAppMessage: function () {
      return {
        title: '疼痛久治不愈？还有一招',
        imageUrl: 'https://7633-v3-92ah4-1300208657.tcb.qcloud.la/static/share_all.jpg',
      };
  },
    onLoad: function () {
        this.xInit()
    },

    xParReload: function() {
        this.xInit()
    } ,

    xInit: function () {
        let that = this
        wx.cloud.callFunction({
            name: 'dynamic_content',
            data: {
                action: "get_group_list"
            }
        }).then(res => {
            console.log("列表", res.result)
            that.setData({
                list : res.result ,
                xPageReady : false ,
            })
        })
    },

    xToIndex: function (e) {
        let id = e.currentTarget.dataset.id
        let label = e.currentTarget.dataset.label
        let mylike = e.currentTarget.dataset.mylike
        wx.navigateTo({
            url: '/subtool/pages/community/about/index?id=' + id + '&label=' + label + '&mylike=' + mylike,
        })
    },

    xBack: function () {
        wx.navigateBack({
            delta: -1,
        })
    }
})